(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
    ["pages/main/storehouse/outdetails"], {
        "0248": function (t, o, e) {
            "use strict";
            (function (t) {
                var n = e("4ea4");
                Object.defineProperty(o, "__esModule", {
                    value: !0
                }), o.default = void 0;
                var i = n(e("2eee")),
                    u = n(e("c973")),
                    a = {
                        components: {
                            dtSelect: function () {
                                e.e("components/dt-select/dt-select").then(function () {
                                    return resolve(e("9fbf"))
                                }.bind(null, e)).catch(e.oe)
                            },
                            uniPopupDialog: function () {
                                e.e("components/uni-popup-dialog/uni-popup-dialog").then(function () {
                                    return resolve(e("92b2"))
                                }.bind(null, e)).catch(e.oe)
                            }
                        },
                        data: function () {
                            return {
                                url: getApp().globalData.apiurl,
                                model: [],
                                outids: "",
                                id: "",
                                outstate: 0,
                                salesdocumentsno: "",
                                listData: [],
                                checkStatus: 0,
                                checkNotes: "",
                                token: "eyJhbGciOiJIUzUxMiJ9.eyJsb2dpbl91c2VyX2tleSI6ImI5Y2JkZTU1LTkyNzgtNDkxZC1iOWFhLWUwNTMxMTBkYTgxZiJ9.lXRbv03qHT1FMwxBOBj4G3nZ02Qg1hXxFhGcwZZd9WOhNy8tdL7z4_3O8Waa9DLvPJ8tVyT98ZSBhpS_6tQT4w"
                            }
                        },
                        methods: {
                            initData: function (o) {
                                var e = this;
                                return (0, u.default)(i.default.mark((function n() {
                                    var u, a, s;
                                    return i.default.wrap((function (n) {
                                        while (1) switch (n.prev = n.next) {
                                            case 0:
                                                u = e, null != o && (a = [], s = o.split("@"), e.outids = s[1], e.id = s[0], console.log("拼接的id", s[1]), t.request({
                                                    url: e.url + "outboundorder/outboundorder/list",
                                                    method: "GET",
                                                    data: {},
                                                    success: function (o) {
                                                        for (var n = 0; n < o.data.rows.length; n++)
                                                            if (o.data.rows[n].salesdocumentsno == e.outids) {
                                                                a.push(o.data.rows[n]);
                                                                a[0].salesdocumentsno;
                                                                return e.outstate = a[0].state, console.log("状态", e.outstate), void t.request({
                                                                    url: e.url + "sale/product/list",
                                                                    method: "get",
                                                                    header: {
                                                                        Authorization: e.token
                                                                    },
                                                                    data: {
                                                                        orderid: e.outids
                                                                    },
                                                                    success: function (o) {
                                                                        u.model = [], u.model = o.data.rows, console.log("订单货品列表", u.model), t.request({
                                                                            url: e.url + "goodsmaintain/goods/list",
                                                                            method: "GET",
                                                                            data: {
                                                                                type: "2"
                                                                            },
                                                                            success: function (t) {
                                                                                console.log(t.data.rows);
                                                                                for (var o = 0; o < u.model.length; o++)
                                                                                    for (var e = 0; e < t.data.rows.length; e++) u.model[o].goodsno == t.data.rows[e].goodsno && (u.model[o].goodsno = t.data.rows[e].goodsname, u.model[o].remark = t.data.rows[e].specifications)
                                                                            },
                                                                            fail: function () {},
                                                                            complete: function () {}
                                                                        })
                                                                    }
                                                                })
                                                            }
                                                    },
                                                    fail: function () {},
                                                    complete: function () {}
                                                }));
                                            case 2:
                                            case "end":
                                                return n.stop()
                                        }
                                    }), n)
                                })))()
                            },
                            submitForm: function () {
                                var o = getApp().globalData.userinfo.nickName;
                                console.log("确认发料", this.outids, o), t.request({
                                    url: this.url + "outboundorder/outboundorder/confirm",
                                    method: "GET",
                                    data: {
                                        id: this.id,
                                        maintainpeople: o
                                    },
                                    success: function (o) {
                                        console.log(o), t.showToast({
                                            title: "发料成功"
                                        }), setTimeout((function () {
                                            t.redirectTo({
                                                url: "/pages/main/storehouse/out"
                                            })
                                        }), 300)
                                    },
                                    fail: function () {},
                                    complete: function () {}
                                })
                            }
                        },
                        onLoad: function (t) {
                            t.id && this.initData(t.id)
                        }
                    };
                o.default = a
            }).call(this, e("543d")["default"])
        },
        "6cf5": function (t, o, e) {
            "use strict";
            e.r(o);
            var n = e("b2d9"),
                i = e("e398");
            for (var u in i)["default"].indexOf(u) < 0 && function (t) {
                e.d(o, t, (function () {
                    return i[t]
                }))
            }(u);
            e("94d3");
            var a = e("f0c5"),
                s = Object(a["a"])(i["default"], n["b"], n["c"], !1, null, "1c545627", null, !1, n["a"], void 0);
            o["default"] = s.exports
        },
        7157: function (t, o, e) {},
        "793a": function (t, o, e) {
            "use strict";
            (function (t, o) {
                var n = e("4ea4");
                e("c150"), e("5c17"), e("a9ff");
                n(e("66fd"));
                var i = n(e("6cf5"));
                t.__webpack_require_UNI_MP_PLUGIN__ = e, o(i.default)
            }).call(this, e("bc2e")["default"], e("543d")["createPage"])
        },
        "94d3": function (t, o, e) {
            "use strict";
            var n = e("7157"),
                i = e.n(n);
            i.a
        },
        b2d9: function (t, o, e) {
            "use strict";
            e.d(o, "b", (function () {
                return i
            })), e.d(o, "c", (function () {
                return u
            })), e.d(o, "a", (function () {
                return n
            }));
            var n = {
                    uniForms: function () {
                        return Promise.all([e.e("common/vendor"), e.e("components/uni-forms/uni-forms")]).then(e.bind(null, "0933"))
                    },
                    uniSwipeAction: function () {
                        return e.e("components/uni-swipe-action/uni-swipe-action").then(e.bind(null, "e7b4"))
                    },
                    uniSwipeActionItem: function () {
                        return Promise.all([e.e("common/vendor"), e.e("components/uni-swipe-action-item/uni-swipe-action-item")]).then(e.bind(null, "c498"))
                    }
                },
                i = function () {
                    var t = this.$createElement;
                    this._self._c
                },
                u = []
        },
        e398: function (t, o, e) {
            "use strict";
            e.r(o);
            var n = e("0248"),
                i = e.n(n);
            for (var u in n)["default"].indexOf(u) < 0 && function (t) {
                e.d(o, t, (function () {
                    return n[t]
                }))
            }(u);
            o["default"] = i.a
        }
    },
    [
        ["793a", "common/runtime", "common/vendor"]
    ]
]);